<!DOCTYPE html>
<!-- saved from url=(0053)http://www.jeasyui.com/documentation/timespinner.php# -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<meta name="keywords" content="jquery,ui,easy,easyui,web framekwork,ajax framekwork,ria,web development">
		<meta name="description" content="easyui help you build your web page easily!">
		<title>timespinner - Documentation - jQuery EasyUI</title>
        <link rel="stylesheet" href="cssandjs/main.css" type="text/css">
		<link type="text/css" rel="stylesheet" href="cssandjs/SyntaxHighlighter.css">
		<script src="cssandjs/shCore.js"></script>
		<script src="cssandjs/shBrushJScript.js"></script>
		<script src="cssandjs/shBrushXml.js"></script>
	<style type="text/css">.dp-xml .cdata { color: #ff1493; }.dp-xml .tag, .dp-xml .tag-name { color: #069; font-weight: bold; }.dp-xml .attribute { color: red; }.dp-xml .attribute-value { color: blue; }</style></head>
	<body>
		<div id="header">
						<div id="header-inner">
				<table cellpadding="0" cellspacing="0" style="width:100%;">
					<tbody><tr>
						<td rowspan="2" style="width:20px;">
						</td>
						<td style="height:52px;">
							<div style="color:#fff;font-size:22px;font-weight:bold;">
								<a href="http://www.jeasyui.com/index.php" style="color:#fff;font-size:22px;font-weight:bold;text-decoration:none">jQuery EasyUI</a>
							</div>
							<div style="color:#fff">
								<a href="http://www.jeasyui.com/index.php" style="color:#fff;text-decoration:none">easyui help you build your web page easily!</a>
							</div>
						</td>
						<td style="padding-right:5px;text-align:right;vertical-align:bottom;">
							<div id="topmenu">
								<a href="http://www.jeasyui.com/index.php">Home</a>
								<a href="http://www.jeasyui.com/demo/index.php">Demo</a>
								<a href="http://www.jeasyui.com/tutorial/index.php">Tutorial</a>
								<a href="http://www.jeasyui.com/documentation/index.php">Documentation</a>
								<a href="http://www.jeasyui.com/download/index.php">Download</a>
								<a href="http://www.jeasyui.com/extension/index.php">Extension</a>
								<a href="http://www.jeasyui.com/contact.php">Contact</a>
								<a href="http://www.jeasyui.com/forum/index.php">Forum</a>
							</div>
						</td>
					</tr>
				</tbody></table>
			</div>
			
		</div>
		<div id="mainwrap">
			<div id="content">
			

<div style="padding:10px">

<h3>TimeSpinner</h3>
<p>Extend from $.fn.spinner.defaults. Override defaults with $.fn.timespinner.defaults.</p>
<img src="cssandjs/timespinner.png">

<h4>Dependencies</h4>
<ul>
	<li>spinner</li>
</ul>

<h4>Usage</h4>
<div class="dp-highlighter"><div class="bar"><div class="tools"></div></div><ol start="1" class="dp-xml"><li class="alt"><span><span class="tag">&lt;</span><span class="tag-name">input</span><span>&nbsp;</span><span class="attribute">id</span><span>=</span><span class="attribute-value">"ss"</span><span>&nbsp;</span><span class="attribute">required</span><span>=</span><span class="attribute-value">"true"</span><span>&nbsp;</span><span class="attribute">style</span><span>=</span><span class="attribute-value">"width:80px;"</span><span class="tag">&gt;</span><span>&nbsp;&nbsp;</span></span></li></ol></div><textarea name="code-timespinner" class="html" style="display: none; ">	&lt;input id="ss" required="true" style="width:80px;"&gt;
</textarea>
<div class="dp-highlighter"><div class="bar"><div class="tools"></div></div><ol start="1" class="dp-c"><li class="alt"><span><span>$(</span><span class="string">'#ss'</span><span>).timespinner({&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;showSeconds:<span class="keyword">true</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>});&nbsp;&nbsp;</span></li></ol></div><textarea name="code-timespinner" class="js" style="display: none; ">	$('#ss').timespinner({
		showSeconds:true
	});
</textarea>

<h4>Properties</h4>
<p>The properties extend from spinner, below is the added properties for timespinner.</p>
<table class="doc-table">
<tbody><tr>
<th><strong>Name</strong></th>
<th><strong>Type</strong></th>
<th><strong>Description</strong></th>
<th><strong>Default</strong></th>
</tr>
<tr>
<td>separator</td>

<td>string</td>
<td>The separator between hour and minute and second.</td>
<td>:</td>
</tr>
<tr>
<td>showSeconds</td>
<td>boolean</td>
<td>Defines if to show the second information.</td>
<td>false</td>
</tr>

<tr>
<td>highlight</td>
<td>number</td>
<td>The field to highlight initially, 0 = hours, 1 = minutes, …</td>
<td>0</td>
</tr>
</tbody></table>




<h4>Events</h4>
<p>The events extend from spinner.</p>

<h4>Methods</h4>
<p>The methods extend from spinner, below is the overridden methods for timespinner.</p>
<table class="doc-table">
<tbody><tr>
<th><strong>Name</strong></th>
<th><strong>Parameter</strong></th>
<th><strong>Description</strong></th>
</tr>
<tr>

<td>options</td>
<td>none</td>
<td>Return the options object.</td>
</tr>
<tr>
<td>setValue</td>
<td>value</td>
<td>Set the timespinner value.</td>
</tr>
<tr>
<td>getHours</td>

<td>none</td>
<td>Get the current hour value.</td>
</tr>
<tr>
<td>getMinutes</td>
<td>none</td>
<td>Get the current minute value.</td>
</tr>
<tr>
<td>getSeconds</td>
<td>none</td>

<td>Get the current second value.</td>
</tr>
</tbody></table>

</div>

			</div>
		</div>
		<div id="footer">
			<div>Copyright (c) 2010-2011 www.jeasyui.com</div>
		</div>
		<script type="text/javascript">
						dp.SyntaxHighlighter.ClipboardSwf = '/SyntaxHighlighter/Scripts/clipboard.swf';
			dp.SyntaxHighlighter.HighlightAll('code-timespinner');
		</script>
	
</body></html>